def count(str):
    sz=zm=kg=qt=0
    for i in str:
        if '1'<=i<='9':
            sz+=1
        elif 'a'<=i<='z'or'A'<=i<='Z':
            zm+=1
        elif i=='':
            kg+=1
        else:
            qt+=1
    return sz,zm,kg,qt
if not count(''):
    print('测试成功')
if count('12abAB[$')==(2,4,1,2):
    print('测试成功')
else:
    print('测试失败')
a=input()
print(count(a))